/**
 * 
 */
package sqs.dataaccess;

import sqs.dataaccess.hibernate.HibernateDaoFactory;

/**
 * @author kjleng
 *
 */
public abstract class DaoFactory {
	private static DaoFactory instance;
	public static int HIBERNATE = 1;
	
	public abstract QuestionnaireDao getQuestionnaireDao();
	public abstract SubmittedQuestionnaireDao getSubmittedQuestionnaireDao();
	public abstract UserDao getUserDao();
	
	public static DaoFactory getInstance(int i) {
        instance = loadInstance(i);
        return instance;
    }
    
    private static DaoFactory loadInstance(int acc){
        switch (acc) {
            
            case (1):
                return new HibernateDaoFactory();
                
            default:
                return new HibernateDaoFactory();
                
        }
    }
}
